package com.ruoyi.qiushi.domain.equipment;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 预警对象 qiushi_warning
 *
 * @author ruoyi
 * @date 2024-01-10
 */
public class QiushiWarning extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private Long formId;

    public Long getFormId() {
        return formId;
    }

    public void setFormId(Long formId) {
        this.formId = formId;
    }

    private String formName;

    public String getFormName() {
        return formName;
    }

    public void setFormName(String formName) {
        this.formName = formName;
    }

    public String familyName;

    public String getFamilyName() {
        return familyName;
    }

    public void setFamilyName(String familyName) {
        this.familyName = familyName;
    }

    /**
     * $column.columnComment
     */
    private Long id;

    /** 随访状态状态  0未随访  1随访中 2已完成 */
    @Excel(name = "随访状态状态  0未随访  1随访中 2已完成")
    private String followStatus;

    public String getFollowStatus() {
        return followStatus;
    }

    public void setFollowStatus(String followStatus) {
        this.followStatus = followStatus;
    }

    /**
     * 家人id  member_family.id
     */
    @Excel(name = "家人id  member_family.id")
    private Long familyId;

    /**
     * 设备id
     */
    @Excel(name = "设备id")
    private Long deviceId;

    /**
     * 设备类型
     */
    @Excel(name = "设备类型")
    private Long deviceType;

    /**
     * 关联数据id
     */
    @Excel(name = "关联数据id")
    private Long dataId;

    /**
     * 预警名称
     */
    @Excel(name = "预警名称")
    private String warningName;

    /**
     * 预警内容
     */
    @Excel(name = "预警内容")
    private String warningContent;

    /**
     * 预警等级
     */
    @Excel(name = "预警等级")
    private String warningLevel;

    /**
     * 状态 1待审核  2待推送 3已推送 4忽略
     */
    @Excel(name = "状态 1待审核  2待推送 3已推送 4忽略")
    private String status;

    /**
     * 审核时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auditTime;

    /**
     * 审核人id
     */
    @Excel(name = "审核人id")
    private Long auditUserId;

    /**
     * 审核人名字
     */
    @Excel(name = "审核人名字")
    private String auditUserName;

    /**
     * 0正常 1删除
     */
    private String delFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setFamilyId(Long familyId) {
        this.familyId = familyId;
    }

    public Long getFamilyId() {
        return familyId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceType(Long deviceType) {
        this.deviceType = deviceType;
    }

    public Long getDeviceType() {
        return deviceType;
    }

    public void setDataId(Long dataId) {
        this.dataId = dataId;
    }

    public Long getDataId() {
        return dataId;
    }

    public void setWarningName(String warningName) {
        this.warningName = warningName;
    }

    public String getWarningName() {
        return warningName;
    }

    public void setWarningContent(String warningContent) {
        this.warningContent = warningContent;
    }

    public String getWarningContent() {
        return warningContent;
    }

    public void setWarningLevel(String warningLevel) {
        this.warningLevel = warningLevel;
    }

    public String getWarningLevel() {
        return warningLevel;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setAuditTime(Date auditTime) {
        this.auditTime = auditTime;
    }

    public Date getAuditTime() {
        return auditTime;
    }

    public void setAuditUserId(Long auditUserId) {
        this.auditUserId = auditUserId;
    }

    public Long getAuditUserId() {
        return auditUserId;
    }

    public void setAuditUserName(String auditUserName) {
        this.auditUserName = auditUserName;
    }

    public String getAuditUserName() {
        return auditUserName;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("formId", getFormId())
                .append("formName", getFormName())
                .append("familyName", getFamilyName())
                .append("id", getId())
                .append("familyId", getFamilyId())
                .append("deviceId", getDeviceId())
                .append("deviceType", getDeviceType())
                .append("dataId", getDataId())
                .append("warningName", getWarningName())
                .append("warningContent", getWarningContent())
                .append("warningLevel", getWarningLevel())
                .append("status", getStatus())
                .append("auditTime", getAuditTime())
                .append("auditUserId", getAuditUserId())
                .append("auditUserName", getAuditUserName())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
